Project Summary

Project summary

Goals

Findings

Analysis & findings

Data Overview

Twitter data

Twitter data was obtained freely through a partnership between UCSB Library and Crimson Hexagon. Before downloading, the data was queried to meet the following conditions:

  1. Tweet came from the Santa Barbara area (add more details about how CH applies the location query)
  2. Only original tweets (no retweets)
  3. Date was marked between January 1, 2015 and December 31, 2019

Crimson Hexagon only allows 10,000 randomly selected tweets to be exported, manually, at a time in .xls format. Due to this restriction, data was manually downloaded for every 2 days in order to capture all tweets. There were around 5000 average number of daily tweets that met these conditions.

The Crimson Hexagon data did not contain all desired information, including whether or not the tweet was geotagged. To get this information we used the python twarc library to “rehydrate” the data using individual tweet ids and store the tweet information as .json files. From here we were able to remove all tweets that did not have a geotag, giving us a total of 79,981 tweets.

Table of data

Here is a sample of the type of the final twitter information we obtained.

created_at full_text user_location retweet_count favorite_count
Sat Nov 21 20:43:16 +0000 2015 Loaded up and ready for #brewsuphoedown at the carriage museum now until 4pm! Beer, whiskey & BBQ!… https://t.co/dBvl2rYlXg Santa Barbara, Ca 0 0
Wed Jul 26 04:08:17 +0000 2017

a man who drinks milkshakes for breakfast is a man you can trust.

or, rather, a mangmaan. @… https://t.co/0kEEAaahkP
san diego, ca. 0 0
Thu Jan 01 01:48:04 +0000 2015 Happy new year 2015. Steal the glasses. Pilsner… (Sin-Tax Imperial Stout (Peanut Butter)) http://t.co/RHA1gj91QL #photo oakland hotw 0 0
Mon Nov 09 22:55:31 +0000 2015 RJ at Velvet Jones the other night was dope! #rj #ommio #velvetjones #watchwhatyousay #hiphop #live… https://t.co/lx0eHANX1K SoCal in the Goodland 0 0
Sun Oct 16 19:42:40 +0000 2016 current weather in Santa Barbara: light rain, 64°F 97% humidity, wind 4mph, pressure 1023mb Santa Barbara, CA 0 0
Sun Dec 06 00:26:07 +0000 2015 Back to the scene of the crime, 3 years later, BEST decision I’ve ever made ❤️💍👰🏽 So happy for… https://t.co/lvDCR4MJwB West Hollywood 0 0
Mon Mar 30 05:26:10 +0000 2015 Reminder that if you pay me I’ll draw things for you Seaux Cal 0 0

The spatial distribution of tweets highlights areas of higher population density and tourist areas in downtown Santa Barbara. There is a single coordinate that has over 11,000 tweets reported across all years. It is near De La Vina between Islay and Valerio. There is nothing remarkable about this site so I assume it is the default coordinate when people tag “Santa Barbara” generally. The coordinate is 34.4258, -119.714.

Interactive map with cluster markers

As you zoom in on the map, clusters will disaggregate. You can click on blue points to see the tweet.

Tweet density

This is log-transformed.

Tourists and locals

This project aims to understand if and how preferences differ between tourists and locals for nature-based places within the Santa Barbara area. In order to test this we needed to come up with a way to identify tourists or locals. We used a two step process.

First, if the user has self-identified their location as somewhere in the Santa Barbara area, they are designated a local. This includes Carpinteria, Santa Barbara, Montecito, Goleta, Gaviota and UCSB. For the remainder, we use the number of times they have tweeted from Santa Barbara within a year to designate user type. If someone has tweeted across more than 2 months in the same year from Santa Barbara, they are identified as a local. This is consistent with how Eric Fischer determined tourists in his work. This is not fool-proof and there are instances were people visit and tweet from Santa Barbara more than two months a year, especially if they are visiting family or live within a couple hours driving distance.

There are 26408 tweets from tourists and 56468 tweets from locals.

The following map shows tweet log density by locals (top - blue) and tourists (bottom - red).

Nature-based tweets

The full text of each tweet was analyzed to be either nature-based or not. We developed a coarse dictionary of words that indicate a nature-based tweet. These include natural features like ocean, coast, park, and works that indicate recreating (fishing, hiking, camping, etc.).

Note I had a hard time finding an ontology or lexicon that would fit this project. These are definitely skewed more towards nature and recreation rather than words like “home” or “connection”.

##  [1] "hike"        "trail"       "hiking"      "camping"     "tent"       
##  [6] "climb"       "summit"      "fishing"     "sail"        "sailing"    
## [11] "boat"        "boating"     "ship"        "cruise"      "cruising"   
## [16] "bike"        "biking"      "dive"        "diving"      "surf"       
## [21] "surfing"     "paddle"      "swim"        "ocean"       "beach"      
## [26] "^sea"        "sand"        "coast"       "island"      "wave"       
## [31] "fish"        "whale"       "dolphin"     "pacific"     "crab"       
## [36] "lobster"     "water"       "shore"       "marine"      "seawater"   
## [41] "lagoon"      "slough"      "saltwater"   "underwater"  "tide"       
## [46] "aquatic"     "^tree"       "^earth"      "weather"     "sunset"     
## [51] "sunrise"     "^sun"        "climate"     "park"        "wildlife"   
## [56] "^view"       "habitat"     "^rock"       "nature"      "mountains"  
## [61] "^peak"       "canyon"      "pier"        "wharf"       "environment"
## [66] "ecosystem"

Let’s look at some examples of what tweets qualified as “nature-based”.

date full_text user_location user_type nature_word
2017-07-08 see you tomorrow for our #beachcleanup at #leadbetterbeach in santa barbara. we’ll be out there… https://t.co/mko5toid5j |Santa Barbara, CA| local 1
2017-07-15 welcome to the fam, hind hall! 🎉 #classicalwest #sunset #grandopening @ music academy of the west https://t.co/e2w3axerzh Miami Beach, FL tourist 1
2018-07-12 🗓my days july/11/2018🗓 🗝" #classico pt2 "🗝 #droptop #oldsmobile #views #sunsetsky #santabarbaralifestyle ____________________________________ #recordingartist #lifestyleblogger… https://t.co/dugcixbwfr Cerritos, CA local 1
2018-02-08 gratitude +trees+mother nature=a whole lot of 💛 #gratefulheart #naturephotography @ rattlesnake… https://t.co/xidsgbifb2 Santa Barbara, CA local 1
2015-12-29 when the line is so long in this weather you know it’s going to be good!! (@ mcconnell’s fine ice creams) https://t.co/u7vnrud7ql Mexico, Mex tourist 1
2017-12-19 made it safely to nana and popsie’s. time to rest. #vanlife #homeiswhereyouparkit #home… https://t.co/2cbynotu3x How many states can we hit? local 1
2017-04-27 attention all teachers! next week ( may 1 - 5 ) is national teacher appreciation week and… https://t.co/rjxidpez2d Santa Barbara, California, USA local 1

Where are nature-based tweets?

After identifying nature-based tweets we can take a look at where these tweets are coming from and compare to the general pattern of tweets.

Who is tweeting nature-based tweets?

Not surprisingly there are less nature-based tweets than nature-based. Of all tweets, % are nature-based.

Of local tweeters, 13.7643962% of tweets are nature-based. Of tourists, 21.716904% are nature-based.

Are tweets in protected areas more often nature-based?

California Protected Areas Database

We can use the CPAD data to identify protected areas. [expandon CPAD here]

How many tweets come from these areas?

Count how many points in each polygon (all types of tweets not just nature based)

Some of these areas overlap with high tourist areas (e.g. the Bowl, Zoo and Wharf). Let’s look at the content of these tweets to see how often tweets coming from these locations are nature-based or not.

Compare occurrence of nature vs non-nature based tweets

The highest ratio of nature tweets to non-nature takes place at Manning Park.

Let’s look at the top 20 most popular sites

Not surprisingly the Santa Barbara Bowl has the most number of tweets, but only half are nature based (the view is great!). If we just look at proportion of nature-based tweets we see a different ordering. I removed any places with just 1 tweet since it will skew results if that tweet happens to be nature-based (a total of 4 places).

How does this differ across tourists and locals?

Looking at the breakdown between tourists and locals. The sites included here have at least 50 tweets total across the time frame.


Time

Timeline of tweets

Initial hypothesis was identifying spikes in nature-based tweets around three significant events: - Refugio oil spill in 2015 - Thomas fire in 2017 - Debris flow in 2018

Word clouds

top 100 words for locals vs tourist. And we could do this in space. At sterns wharf what are people tweeting about? At Elings, what are locals tweeting about?

Maybe in word clouds we can see some changes due to natural events

All of SB

By area

Sentiment Analysis

Lessons learned

Data is harder to find

Future research

Looking at different scale areas

There might be an interesting comparison between rural-suburban-urban areas. We hypothseize that the tourist/local alignment would split in urban areas, maybe aligned in suburban (like SB) and maybe not exist in rural.

Proportion of words that are nature based tells you how people. In Santa Barbara, there will be a lot of nature-based sense of place. In Manhattan, we wouldn’t expect to see nature based ones so much.

In a blog piece we can pose questions that we couldn’t answer but stuff like “can proportion of tourists/locals in place engagement tell us anything”.

Could compare % nature based tweets in SB to other areas. If we did this across the whole state, what proportion% are nature based? Maybe on average its just 5%.

Where and why do locals and tourists overlap in their use of area. SB seems to have a high alignment of tourists/locals, which may be helpful for local policy. Maybe places with distinct differences in how tourists/locals use places.

Look at cities of different coastal sizes rural - small town - urban - mega city. Could see how tourists/locals patterns differentiate across scale.

Is there a threshold of tourists where locals don’t go anymore?

In areas where we see both tourists and locals engaging, what characteristics do we see?

Quantifying transitions between rural to city.

Talk about overall social media literature for conservation and how this project is similar/different and used lessons from those papers to guide this analysis.